package com.lynn.salary.service;

import java.util.List;
import java.util.Map;

import com.lynn.salary.entity.Permission;
import com.lynn.salary.entity.Role;

public interface IRolePermissionService  extends IBaseEntityService{
	Integer totalCount() throws Exception;
	List<Map<String,Object>> findPermissionByLimit(Integer currentPage,Integer numPerPage) throws Exception;
	void save(Permission p) throws Exception;
	void delete(String deleteId) throws Exception;
	void delete(String[]ids) throws Exception;
	void deleteByCondition(String condition) throws Exception;
	Permission findPermissionById(String editId) throws Exception;
	void updatePermission(Permission permission) throws Exception;
	
	Integer RtotalCount() throws Exception;
	List<Map<String,Object>> findRoleByLimit(Integer currentPage,Integer numPerPage) throws Exception;
	void save(Role r) throws Exception;
	void deleteRole(String deleteId) throws Exception;
	void deleteRole(String[]ids) throws Exception;
	void deleteByConditionRole(String condition) throws Exception;
	Role findRoleById(String editId) throws Exception;
	void updateRole(Role role) throws Exception;
	List<Map<String,Object>> findEmpContainRole(String roleId) throws Exception ;
	
}
